package pATT.DataSetsGenerator.dataSetsGenerator.data.implement;


import java.util.Vector;

import pATT.DataSetsGenerator.dataSetsGenerator.attribute.implement.Attribute;
import pATT.DataSetsGenerator.dataSetsGenerator.core.implement.Relation;
import pATT.DataSetsGenerator.dataSetsGenerator.generator.implement.RandomGenerator;



public class Data implements IData {
	
	@SuppressWarnings("unused")
	private Attribute attribute = null;
	
	
	public Data(Attribute attribute) {
		this.attribute = attribute;
	}
	
	public Vector generate(Relation relation){
		RandomGenerator random = new RandomGenerator(relation);
		return random.generate(this);		
	}
	
	public String generateValue(Relation relation){
		RandomGenerator random = new RandomGenerator(relation);
		return random.randomValue(this);		
	}

	public Attribute getAttribute() {
		return attribute;
	}

	public void setAttribute(Attribute attribute) {
		this.attribute = attribute;
	}
	
}
